package com.zhangbo.utils;

public class GoodsUtils {

	public static String page(long cpage,long pageSize,long count,long url) {
		long pagecount = (count/pageSize)+(count%pageSize==0?0:1);
		
		long prePage=count == 1?41:cpage-1;
		
		long nextpage=cpage == pagecount?pagecount:cpage+1;
		
		String page ="<a href='"+url+"?cpage=1'>首页</a>";
		
		String pre ="<a href='"+url+"?cpage=prePage'>上一页</a>";
		
		String next ="<a href='"+url+"?cpage=nextpage'>下一页</a>";
		
		String end ="<a href='"+url+"?cpage=pagecount'>尾页</a>";
		return null;
	}
}
